<template>
  <section>
    <el-form :model="fromData" status-icon :rules="fromData_rules" ref="fromDataRef" label-width="100px"
      ><el-form-item label="部位名称" prop="name">
        <el-input v-model="fromData.name"></el-input>
      </el-form-item>
      <el-form-item label="部位编号" prop="code">
        <el-input v-model="fromData.code"></el-input>
      </el-form-item>
      <el-form-item label="描述" prop="describeString">
        <el-input v-model="fromData.describeString"></el-input>
      </el-form-item>
      <el-form-item label="断面里程" prop="sectionMileage">
        <el-input v-model="fromData.sectionMileage"></el-input>
      </el-form-item>
      <el-form-item label="仪器型号" prop="instrumentModel">
        <el-input v-model="fromData.instrumentModel"></el-input>
      </el-form-item>
      <el-form-item label="预留变形量（mm）" prop="reservedDeformation">
        <el-input v-model="fromData.reservedDeformation"></el-input>
      </el-form-item>
      <el-form-item label="控制点ids" prop="controlPointIds">
        <el-input v-model="fromData.controlPointIds"></el-input>
      </el-form-item>
      <el-form-item label="埋设日期" prop="embeddingDate">
        <el-input v-model="fromData.embeddingDate"></el-input>
      </el-form-item>
      <el-form-item label="围岩级别" prop="surroundingRockClassification">
        <el-input v-model="fromData.surroundingRockClassification"></el-input>
      </el-form-item>
    </el-form>
    <div></div>
  </section>
</template>

<script>
export default {
  props: {
    fromData: {},
  },
  data() {
    return {
      fromData_rules: {
        name: [{ required: true, message: '请输入部位名称', trigger: ['blur', 'change'] }],
      },
    }
  },
  methods: {
    validate() {
      let res_bool = false
      this.$refs.fromDataRef.validate(bool => {
        res_bool = bool
      })
      return res_bool
    },
    resetFields() {
      this.$refs.fromDataRef.resetFields()
    },
  },
}
</script>

<style>
</style>